<template>
    <div>

    </div>
</template>

<script setup lang="ts">
// 从字符串中剔除指定字符。
type Butterfly = DropChar<' b u t t e r f l y ! ', ' '>; // 'butterfly!'

type DropChar<T extends string, K extends string> = T extends '' ? T : T extends `${infer F}${infer R}` ? F extends K ? DropChar<R, K> : `${F}${DropChar<R, K>}` : ''

</script>

<style scoped>

</style>